using UnityEngine;
using System.Collections;

public class Alive_object : MonoBehaviour {
	public Transform Necks;
	public object_data monster_data_;
	public player_data player_data_;
	public State[] arr_state_;
	public FSM fsm;
	
	protected void init()
	{
		if( arr_state_.Length.Equals(0) )
		{
			print("State Array is Empty!");
			throw new System.NullReferenceException();
		}
		else
		{
			fsm = new FSM();
			fsm.Begin_state(arr_state_[0],this);
		}
	}
}
